<?php include PATH_VIEW . 'gongyong.php'; ?>
<div class="all_main">
    <div class="module_right">
        <dl>
            <dt>操作说明 
            <a href="#" onclick="dianji(19)">[关闭/展开]</a>
            </dt>
            <dd id="bb19" style="margin-left: 3px;color: red;">以下的菜单名称及排序选项为必填项。</dd>
        </dl>
    </div>
</div>
<div class="module_right_bottom">
    <dl>
        <dt>添加广告位</dt>
        <dd>
            <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">
                <form name="form1" method="post" action="<?php echo URL; ?>" onsubmit="return checkaMenu()"  enctype="multipart/form-data">
                    <tr>
                        <td align="right" width="120">上级分类名称</td>
                        <td>
                            <select name="pid[]" id="selec1" onchange="return setSelect(this.value)" style="float: left;">
                                <option value="0" id="xiaji">请选择下级</option>
                                <?php foreach ($category as $key => $ls) { ?>                                                                                     
                                    <option value="<?php echo $ls['Fid']; ?>" id="option"><?php echo $ls['Fname']; ?></option>                                        
                                <?php } ?>
                            </select>
                        </td>
                        <td class="last">&nbsp;</td>
                    </tr>
                    <tr>
                        <td align="right">广告位名称</td>
                        <td>
                            <input type="text" name="Fname" id="Fname" value="" class="width400" ysp_is_null="0" ysp_type="not" ysp_length="2|64" />
                        </td>
                        <td class="last">
                            <span id="FnameYspMsg" class="font_gray">字符长度：2-64个</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">广告编号</td>
                        <td>
                            <input type="text" name="Fnum" id="Fnum" value="" class="width200" ysp_is_null="0" ysp_type="en_num" ysp_length="2|16" />
                        </td>
                        <td class="last">
                            <span id="FnumYspMsg" class="font_gray">该编号用于前台程序识别，建议程序员附助设置，仅允许字母或数字，字符长度：2-16个</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">广告链接</td>
                        <td>
                            <input type="text" name="Flink" id="Flink" value="" class="width400" ysp_type="not" ysp_length="10|1024" />
                        </td>
                        <td class="last">
                            <span id="FlinkYspMsg" class="font_gray">字符长度：10-1024个</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">上传广告图片</td>
                        <td>
                            <input type="file" name="Fimage" id="Fimage" class="widthh" />
                        </td>
                        <td class="last">
                            <span id="FimageYspMsg" class="font_gray">请选择</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">广告图宽度</td>
                        <td>
                            <input type="text" name="Fwidth" id="Fwidth" value="" class="width50" ysp_type="num" ysp_length="1|4" />px
                        </td>
                        <td class="last">
                            <span id="FwidthYspMsg" class="font_gray">如果没有图片，不用填写，字符长度：1-4个</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">广告图高度</td>
                        <td>
                            <input type="text" name="Fheight" id="Fheight" value="" class="width50" ysp_type="num" ysp_length="1|4" />px
                        </td>
                        <td class="last">
                            <span id="FheightYspMsg" class="font_gray">如果没有图片，不用填写，字符长度：1-4个</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">广告代码</td>
                        <td>
                            <textarea name="Fcode" id="Fcode" cols="40" rows="5"></textarea>
                        </td>
                        <td class="last">
                            <span id="FcodeYspMsg" class="font_gray">该表单主要是用来放联盟广告的代码</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">广告设置说明</td>
                        <td>
                            <textarea name="Fremark" id="Fremark" cols="40" rows="5"></textarea>
                        </td>
                        <td class="last">
                            <span id="FremarkYspMsg" class="font_gray">广告如何设置在这里做一下说明，建议程序员协助填写</span>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="2" class="last">
                            <input type="submit" class="queren" name="ok" value="确认提交" />
                            <input type="reset" class="fanhui" name="ok" value="取消" />
                        </td>
                    </tr>
                </form>
            </table>
        </dd>
    </dl>
</div>